diff options
| author | Alberto Duarte Delgado <alberto@albertoduarte.com> | 2026-03-30 17:37:42 +0100 |
|---|---|---|
| committer | Alberto Duarte Delgado <alberto@albertoduarte.com> | 2026-03-30 17:37:42 +0100 |
| commit | 174f1acd46c4ffbde88c04465e8fa6b6810ce113 (patch) | |
| tree | d0c6705b0130f088e76b7303d394ff2a8d66129c /src/app/(protected)/offices/[officeId].tsx | |
| parent | 31584b4e5a3a551e2ceb15281a38677c39c46e12 (diff) | |
logica de reservas
Diffstat (limited to 'src/app/(protected)/offices/[officeId].tsx')
| -rw-r--r-- | src/app/(protected)/offices/[officeId].tsx | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/src/app/(protected)/offices/[officeId].tsx b/src/app/(protected)/offices/[officeId].tsx index 77fd610..34095c5 100644 --- a/src/app/(protected)/offices/[officeId].tsx +++ b/src/app/(protected)/offices/[officeId].tsx @@ -53,11 +53,21 @@ export default function OfficeDetailScreen() { ) : null} </View> - <Link href="/(protected)/reservations/create" asChild> - <Pressable style={styles.button}> - <Text style={styles.buttonText}>Reservar este espacio</Text> - </Pressable> + <Link + href={{ + pathname: '/(protected)/reservations/create', + params: { + officeId: office.id, + officeName: office.name, + }, + }} + asChild + > + <Pressable style={styles.button}> + <Text style={styles.buttonText}>Reservar este espacio</Text> + </Pressable> </Link> + </View> ); } |